{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { PresetColorTypes } from '../_util/colors';\nvar PresetColorRegex = new RegExp(\"^(\".concat(PresetColorTypes.join('|'), \")(-inverse)?$\"));\nexport function parseColor(prefixCls, color) {\n  var className = classNames(_defineProperty({}, \"\".concat(prefixCls, \"-\").concat(color), color && PresetColorRegex.test(color)));\n  var overlayStyle = {};\n  var arrowStyle = {};\n  if (color && !PresetColorRegex.test(color)) {\n    overlayStyle.background = color;\n    // @ts-ignore\n    arrowStyle['--antd-arrow-background-color'] = color;\n  }\n  return {\n    className: className,\n    overlayStyle: overlayStyle,\n    arrowStyle: arrowStyle\n  };\n}","map":{"version":3,"names":["classNames","PresetColorTypes","PresetColorRegex","RegExp","join","parseColor","prefixCls","color","className","test","overlayStyle","arrowStyle","background"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/tooltip/util.js"],"sourcesContent":["/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { PresetColorTypes } from '../_util/colors';\nconst PresetColorRegex = new RegExp(`^(${PresetColorTypes.join('|')})(-inverse)?$`);\nexport function parseColor(prefixCls, color) {\n  const className = classNames({\n    [`${prefixCls}-${color}`]: color && PresetColorRegex.test(color)\n  });\n  const overlayStyle = {};\n  const arrowStyle = {};\n  if (color && !PresetColorRegex.test(color)) {\n    overlayStyle.background = color;\n    // @ts-ignore\n    arrowStyle['--antd-arrow-background-color'] = color;\n  }\n  return {\n    className,\n    overlayStyle,\n    arrowStyle\n  };\n}"],"mappings":";AAAA;AACA,OAAOA,UAAU,MAAM,YAAY;AACnC,SAASC,gBAAgB,QAAQ,iBAAiB;AAClD,IAAMC,gBAAgB,GAAG,IAAIC,MAAM,aAAMF,gBAAgB,CAACG,IAAI,CAAC,GAAG,CAAC,mBAAgB;AACnF,OAAO,SAASC,UAAU,CAACC,SAAS,EAAEC,KAAK,EAAE;EAC3C,IAAMC,SAAS,GAAGR,UAAU,+BACtBM,SAAS,cAAIC,KAAK,GAAKA,KAAK,IAAIL,gBAAgB,CAACO,IAAI,CAACF,KAAK,CAAC,EAChE;EACF,IAAMG,YAAY,GAAG,CAAC,CAAC;EACvB,IAAMC,UAAU,GAAG,CAAC,CAAC;EACrB,IAAIJ,KAAK,IAAI,CAACL,gBAAgB,CAACO,IAAI,CAACF,KAAK,CAAC,EAAE;IAC1CG,YAAY,CAACE,UAAU,GAAGL,KAAK;IAC/B;IACAI,UAAU,CAAC,+BAA+B,CAAC,GAAGJ,KAAK;EACrD;EACA,OAAO;IACLC,SAAS,EAATA,SAAS;IACTE,YAAY,EAAZA,YAAY;IACZC,UAAU,EAAVA;EACF,CAAC;AACH"},"metadata":{},"sourceType":"module"}